I switched to the universal render pipeline and I noticed that the materials started having these triangular shadows along the edge and when I select any object, my fps drops from 60+ to about 15.
Edit: I found the solution to the shadow problem along the edges. But I still get low fps when I select something.