Thanks. I might have found where the problem lies.
The rotation glitch seems to be coming from the rotation output of the curve to points node. I was able to create my own rotation with help from the blender artist thread.
Reporting a bug is kinda tricky though as the rotation output works fine in most cases. I have no idea what combination of nodes created this glitch. I’ll try to reproduce it again starting with a new scene and see if I can trigger it again