Can't click on actors in viewport other than foliage

For some reason, when I open certain levels, my viewport stops allowing me to click on actors in the viewport. I can’t select or transorm them in any way. When I try clicking on, say, a static mesh in the world, it will ignore the actor and click on the foliage that is behind the actor. Very, very strange and I have no idea how to fix it. I can’t find anything online of anyone experiencing a similar issue.

Could your pc may not be capable of UE5 and its lagging?

I’m not using UE5, I’m using UE4.

And no, my PC is very much capable of handling the engine!