Install this Magisk module in Magisk app: MIUI-Xiaomi.eu_MIUI_AOD_app_RELEASE-2.9.770-08131627-Magisk.zip
EDIT: Updated the Magisk module with a more recent and working AOD app, please thanks @gogocar62's posts below for sharing this version.
If I'm not mistaken, this version had already caused problems for me. So far, I have no problems with your original version (2.9.696-03031914). I've uploaded it again in case someone needs it or wants to test it. Thanks again to you!