Sleep tracking stops during the night

I researched FAQ and configured my phone as described on “Sleep tracking stops during the night”. It does not help. I have Miband Tools, MiFit and Sleep as Android. All of these applications work at the same time. All of these applications have a possibility to work on background mode and change system settings.

The Sleep as Android application was unexpectedly closed every time after some time of running when I started sleep tracking.

What is the reason of this behaviour? Maybe someone can help me to configure the app?