Body gyros turning an object sideways

So, I’m trying to make a robot with Y axis gyro stabilization but it keeps turning towards the Z axis. Is there anyway to fix this?

I’ve tried to search it up on dev forum but none’s said anything about it.

Thanks and I hope someone responds soon,

– Luke