There are 2 common reasons that can lead to this error being returned: The redirect uri passed in the authorize endpoint does not match a redirect uri configured for the client id being used in the EOS Developer Portal (be careful of typos).
https://dev.epicgames.com/community/learning/knowledge-base/k8zLm/epic-online-services-why-is-the-auth-web-api-authorize-endpoint-returning-redirect-url-is-not-known-to-the-client