Lightmass can bake a hidden AO mask that you can use in material graphs, it pretty much exists specifically for this purpose
https://docs.unrealengine.com/en-US/…computedaomask
https://docs.unrealengine.com/Images/Engine/Rendering/Materials/ExpressionReference/Constant/PrecompitedAOMas_00.webp