'Invalid scope param' error when authenticating

I’m experiencing the error below when authenticating in my app:
{“error”:“invalid_scope”,“error_description”:“Invalid scope param”}

The corresponding HTTP call is something like:

https://marketplaceapps.monday.com/oauth2/authorize?oauth_payload_token=...

followed by a JWT string.
The decoded JWT looks like this:

{
“scope”: “me:read boards:read users:read”,
“response_type”: “code”,
“client_id”: “my-client-id”,
“redirect_uri”: “my-redirect-uri”,
“oauth_version”: 2
}

The contents of the above has all the right values afaik. The scopes are enabled in my app config.

I’ve seen this thread: Check authorization response - monday Apps & Developers / Feature Requests - API and Apps Framework - monday Community Forum

Even if I uninstall the app and reinstall it, the error persists.
The funny thing is that the behavior is not consistent, sometimes I get through to the authorization page.
I can’t reproduce this with the app that is bound to my dev environment. With that app, the authorization page is always shown.

I don’t know what I can change at this point.
Any further insights are much appreciated.

Hello there @ngruson,

Would you be able to please fill this form adding as much information as possible to it so that our team can take a look into it?

Thank you, @Matias.Monday,
I just submitted the form with further details.

Thank you for that @ngruson, our team will take a look!

what was the resolution for this issue?