Problem with collision in 2d Game mobile

Hello I’m starting a 2d mobile game and I’m encountering the following problem.
When the player is on a platform everything happens well, but if it hits the side of the platform the screen turns black.

I am initially working with pixel art and the scale is quite small.

Are you getting any errors?

If not, the first place to look is with any sort of collision response your character has. Disable parts of your collision response code until you narrow it down to one section. It may be that you have an invalid location/rotation that teleports/orients your character, or camera, to somewhere outside your playable area.

If these steps don’t help you with your issue, it may be helpful to post more information on your implementation