Segfault Any help on why this happens

I have a websocket server that is connected to by 25 clients and these can go up and down at random. The server acts as a relay to another message service. Occasionally when I restart a browser I will see this happen.

ubuntu 20.04

Any Idea’s…

Program received signal SIGPIPE, Broken pipe.
0x00007ffff7e85730 in __libc_send (fd=23, buf=0x55555568ddf0, len=154376, flags=0) at …/sysdeps/unix/sysv/linux/send.c:28
28 …/sysdeps/unix/sysv/linux/send.c: No such file or directory.
(gdb) backtrace
#0 0x00007ffff7e85730 in __libc_send (fd=23, buf=0x55555568ddf0, len=154376, flags=0) at …/sysdeps/unix/sysv/linux/send.c:28
#1 0x0000555555564055 in mg_sock_send (c=0x5555555ae580, buf=0x55555568ddf0, len=154376, fail=0x7fffffffe1a0) at mongoose.c:2657
#2 0x00005555555642db in ll_write (c=0x5555555ae580, buf=0x55555568ddf0, len=154376, fail=0x7fffffffe1a0) at mongoose.c:2681
#3 0x00005555555648f6 in write_conn (c=0x5555555ae580) at mongoose.c:2790
#4 0x0000555555565c89 in mg_mgr_poll (mgr=0x55555556f980 , ms=1000) at mongoose.c:3099
#5 0x000055555555bfb2 in main (argc=4, argv=0x7fffffffe408) at main.c:703