Same here, can't even use the phone as a dashcam using appropriate apps because of it. Outrageous. It's not safe to drive like that.

Known issue since 2015 (at least), seems like it's time for a fix:

http://en.miui.com/thread-76654-1-1.html#post_1545509