Create a new application, ensure it is a Single Page Application type and that the Token Endpoint Authentication Mode setting is “None”
Modify your existing Default App so that Token Endpoint Authentication Mode is set to “None”. For SPAs, this option is normally disabled, so you may need to change to a different application type, change this setting and then set it back to SPA again.
You can refer here about the fix discussed on GitHub.
This issue is also very similar to the one posted in the Community and sharing for your reference as well.
The redirect_uri should not be the cause of error in this case.