The EOS SDK will create threads on Linux builds with a stack size of 128KB. If your game or server application requires a larger stack size, the SDK will return this error. Providing a larger stack size for Linux builds is a feature request in our backlog.
https://dev.epicgames.com/community/learning/knowledge-base/mXR4j/epic-online-services-why-is-the-eos-sdk-returning-failed-to-create-thread-err-22-invalid-argument