Salesforce Custom Button not working for non admin users

I added a Salesforce custom button on a SKUID page but tis working only for system administrators. The SF custom button is a URL detail page button which passes URL parameters to a Screen Flow.

Upon checking the console the error message I see is “Cannot read property ‘Id’ of undefined”.

Is there are a way to solve this issue? I have checked user permissions of the fields and objects and they seem fine.