Jailbroken iphone 3g always crashes into safe mode

My phone is really old and somewhat broken (can't connect to Wi-Fi.) I haven't downloaded many cida apps but my phone will randomly go into safe mode when I'm texting or playing a game. Is there a way I could stop this from happening? It's really annoying. I'm thinking about just un-jailbreaking the phone.

You have a tweak or two that your phone doesn't like, go into cydia, and find anything that you think could be causing the problem and uninstall it.

Could be that too much ram is being used, and you are being resprung to clear it, but something is going haywire in the repsring and you are saying hello safe mode