Is there a way to group maps together without affecting quality?

Hello Everyone, I have been using Blender, Quixel Mixer and UE5 together recently to model high quality assets such as buildings, my building ( a warehouse) is currently using 5 materials, because we all know UV Unwrapping a big object all in one map affects quality and makes it look poor, However I am wondering if I can combine all UV maps into one so i can have better optimization. (USING 4K TEXTURES)

If you look at Megascan terrains for example: they are huge yet they look great and they use one map.

If can’t combine, is there any other way?