Thanks for playing.
Yeah, that bug happened during development too. The worm is especially prone to clip out because of each segment being its own physics object.
Unfortunately, I was only able to reduce the chance of clipping but did not manage to solve it before the jam's deadline.