Remove background restrictions on the app.
Xiaomi MIUI 10 App Locks
Supported from Android 7.0 and up. To ensure an unintended user interaction based termination of the app, advise the users to lock the apps in the background.
1. Open “Recent Apps” or”App Switcher”.
2. Long press on the app to be white listed.
3. Click on the lock button.