Knowledge Base: Is there a SDK or Web API to block a player?

No, blocking an Epic Games account can only be done via the Social Overlay.

https://dev.epicgames.com/community/learning/knowledge-base/mXRnq/epic-online-services-is-there-a-sdk-or-web-api-to-block-a-player