Make sure the header in your request has the clientId:ClientSecret Base64 encoded. If you run into this issue please reach out to support. We would like to improve the error messaging here, but were not able to reproduce this issue.
https://dev.epicgames.com/community/learning/knowledge-base/9mvjP/epic-online-services-why-am-i-running-into-sorry-an-error-occurred-and-we-were-unable-to-resolve-it-when-retrieving-an-epic-account-access-token