ERROR: trap divide error in g729bcg.so

What does this error means? I found this on a sems node, then auto restarted dropping all active calls.

May  2 13:59:27 Debian-bullseye-latest-amd64-base sems[1173]: [1212/jsonrpc:RpcPeer.cpp:346] ERROR: waiting for send: exception on socket
May  2 14:05:36 Debian-bullseye-latest-amd64-base sems[444145]: Configuration:
May  2 14:05:36 Debian-bullseye-latest-amd64-base sems[444145]:        configuration file:  /etc/sems/sems.conf
May  2 14:05:36 Debian-bullseye-latest-amd64-base sems[444145]:        plug-in path:        /usr/lib/sems/plug-in
May  2 14:05:39 Debian-bullseye-latest-amd64-base sems[444145]: [444211/yeti:resources/ResourceCache.cpp:306] ERROR: get connection can't get connection from write redis pool. retry every 1s 

on kern.log

May  2 14:03:48 Debian-bullseye-latest-amd64-base kernel: [1002021.383853] traps: media-proc[1205] trap divide error ip:7f06c0004bd2 sp:7f06c0652db0 error:0 in g729bcg.so[7f06c0001000+b000]

on syslog

May  2 14:05:30 Debian-bullseye-latest-amd64-base systemd[1]: sems.service: Main process exited, code=killed, status=8/FPE
May  2 14:05:30 Debian-bullseye-latest-amd64-base systemd[1]: sems.service: Failed with result 'signal'.
May  2 14:05:31 Debian-bullseye-latest-amd64-base systemd[1]: sems.service: Consumed 4d 13h 11min 30.825s CPU time.
May  2 14:05:31 Debian-bullseye-latest-amd64-base systemd[1]: sems.service: Scheduled restart job, restart counter is at 1.
May  2 14:05:31 Debian-bullseye-latest-amd64-base systemd[1]: Stopped SEMS for YETI project.
May  2 14:05:31 Debian-bullseye-latest-amd64-base systemd[1]: sems.service: Consumed 4d 13h 11min 30.825s CPU time.
May  2 14:05:31 Debian-bullseye-latest-amd64-base systemd[1]: Started SEMS for YETI project.

I think the real problem started from this (i masked all my data):

May  2 14:03:03 Debian-bullseye-latest-amd64-base pgqd[1172]: 2023-05-02 14:03:03.148 CEST [1172] LOG {ticks: 29, maint: 0, retry: 0}
May  2 14:03:03 Debian-bullseye-latest-amd64-base pgqd[1172]: {ticks: 29, maint: 0, retry: 0}
May  2 14:03:33 Debian-bullseye-latest-amd64-base pgqd[1172]: 2023-05-02 14:03:33.151 CEST [1172] LOG {ticks: 30, maint: 0, retry: 0}
May  2 14:03:33 Debian-bullseye-latest-amd64-base pgqd[1172]: {ticks: 30, maint: 0, retry: 0}
May  2 14:03:48 Debian-bullseye-latest-amd64-base kernel: [1002021.383853] traps: media-proc[1205] trap divide error ip:7f06c0004bd2 sp:7f06c0652db0 error:0 in g729bcg.so[7f06c00
01000+b000]
May  2 14:03:48 Debian-bullseye-latest-amd64-base /usr/sbin/kamailio[1041]: ERROR: <script>: [TAG@IP] IP No reply from SEMS node.
 RURI sip:NUMBER@IP Try the next destination
May  2 14:03:49 Debian-bullseye-latest-amd64-base /usr/sbin/kamailio[1041]: ERROR: <script>: [TAG@IP] IP Rerouting to sip:OTHERNODEIP:5060

this is exception in g729 codec

yes and it crashed sems, any solution to avoid that in future?