Shortcuts error 54 when phone is locked

I am a complete newb to using shortcuts.

I wanted to.create an hourly Chime.

I created 16 separate automations to play a sound every hour from 7am to 10pm.

The automation links to a shortcut I created that plays the sound.

The shortcut is 2 commands:

  1. get File from a local folder on my iPhone 13 Pro (iOS 15.4.1), at a path to the file.
  2. play sound (an mp3)

It executes fine when my phone is unlocked but hits me with an error -54 when the phone is locked.

I'm assuming this is a security issue with running automations when the phone is locked. Is there a way around this?

Anyone?

Shortcuts error 54 when phone is locked
 
 
Q