Some of my assets flip around when the player walks onto the corner of them

I’m working on making my first game and decided I wanted to make a platformer. So far everything works well except that when my player jumps and lands on the ends of a platform, the platform freaks out and starts randomly flipping around sometimes. I want to know if anyone would know what could cause this to happen? I’m using a box collider over the platform.

Also once the platform starts freaking out, the player sometimes lands on the side of it and appears to be defying gravity by walking up a horizontal wall.

Any ideas?

If your platform has a RigidBody(2D) component and DOES NOT move then you should get rid of it.