Stopping sleep monitoring ends DND and creates annoying sounds

Detailed description of the problem:
Version:1.0 StartHTML:000000196 EndHTML:001395058 StartFragment:001394192 EndFragment:001394690 StartSelection:001394192 EndSelection:001394690 SourceURL:https://mail.google.com/mail/u/0/

When I stop the sleep monitoring, it also at the same time stops “don’t
disturb” and if I for exampe got 3 emails and 2 sms during the night, I get
3 noifications for the emails, and 2 for the SMS. Why. That’s really
enoying.
Especially if I have the setting that the alarm end the sleep monitoring.
And If I don’t have that setting and ends the monitoring manually, I get
the sam issue.
Where is the setting that makes sleep for android to stop the “don’t
disturb”?
Steps to reproduce:

Version of Sleep as Android:
Where do I see the version?