Empty GameObject with box collider randomly rotating itself.

I have a trigger set up using what’s in the title, sometimes when objects enter the trigger it rotates itself from 0,0,0 to -125.264,45,0.

I’ve tried adding a rigidbody to it set to kinematic and also constrained its rotation in X,Y,Z but it’s still doing it occasionally.

any suggestions?

I had a function inside the script which instantiated a random object, for some reason the rotation in the instantiate was also rotating the trigger box. I think i had an error in my code

This was causing the Issue.
transform.rotation = Quaternion.Euler(-20, 90, 0));
And this was the fix
transform.rotation * Quaternion.Euler(-20, 90, 0));