What you can do is enable QuickBoot mode: first enable Developer options by tapping the Build number ten times in Settings -> About phone. Then go to Settings -> Developer options and enable QuickBoot mode. Now turning your phone off won’t actually fully power it down, and the device is able to wake up for an alarm.