What will you get, when you enter:
Assertion status system-wide:
BackgroundTask 0
ApplePushServiceTask 0
UserIsActive 1
PreventUserIdleDisplaySleep 0
PreventSystemSleep 0
ExternalMedia 0
PreventUserIdleSystemSleep 1
NetworkClientActive 0
pid 591(sharingd): [xxx] 00:00:23 PreventUserIdleSystemSleep named: "Handoff"
pid 284(powerd): [xxx] 00:07:16 PreventUserIdleSystemSleep named: "Powerd - Prevent sleep while display is on"
Looks like pid 591 an pid 284 are preventing from sleep.
As far as I understand my M1 MBA 'never' sleeps.