This is a bug that will be fixed in UE5.5. This commit from ue5-main has the fix.
https://dev.epicgames.com/community/learning/knowledge-base/eD4dq/epic-online-services-why-does-the-onlinesubsystemeos-throw-invalid-cachedirectory-supplied-in-platform-options-when-running-my-game-using-a-system-account