It sounds like an odd issue with iOS, perhaps if a notification or alert arrives, it may cause the system to change orientation internally, and the app is responding to that change.
I am assuming that turning on the device's orientation lock does not fix the issue?
We may to add a setting in the app to ignore the device orientation with some sort of override.