You don't have to get a "license" (at least in the sense of paying anything), IIRC you just connect your EGS account to your Github account, accept an EULA (which technically is a "license" I guess) and then have read access to the Unreal Engine GH repositories.
(currently there seem to be around half a million users with access)
I'm hailing from an era where "getting a game engine license" involved several in-person meetings between top-level management of both companies, followed by multiple technical meetings between engineers from both companies, followed by exhaustive due diligence investigations from both sides, followed by intense haggling and shady backroom deals for several months, and finally signing a proper "contract", handing over absurd amounts of money upfront and then paying equally absurd amounts of royalties after release.
That's basically what I understand as "getting a license for a game engine" (this is also why Unity got popular in the first place, because they skipped all this nonsense).
OTH I accept probably 5..10 EULAs a week without thinking or even reading the text (most of them are not enforceable anyway).
AFAIK in Germany the TL;DR is that if there's anything in the EULA which violates "German Civil Code (BGB)", then either parts or all of the EULA are invalid. I remember that in Germany an EULA cannot prohibit reselling the software to somebody else, or making your own backup copy (kinda tricky nowadays though where everything is just a "service").
"AFAIK in Germany the TL;DR is that if there's anything in the EULA which violates "German Civil Code (BGB)", then either parts or all of the EULA are invalid. "
There is nothing unique about German law here. The same is true in the USA and most other countries. If a EULA or any other contract (whether agreed verbally, signed physically, digitally, or via a "click") violates the law, it can be considered invalid/unenforceable. It has nothing to do with how the agreement was agreed to, but with what the agreement contains. (There may be some legal theory that may carry some weight that a contract agreed to via a "click" is more likely to be unconscionable that one agreed to with a physical signature, but that does not automatically make all "click" agreements unenforceable.)
(currently there seem to be around half a million users with access)