Error running shortcuts

Trying to build some shortcuts to automate PDF generation from files, including Notes.app.

The shortcuts rarely work and often return an error such as:

Also adding screencap of above, just in case it's useful. (None of it contains private info, so haven't bothered to redact):

Is this behaviour familiar? Known or unknown bug? Etc

Error running shortcuts
 
 
Q