Sounds like some data stored in the memory that needs to be cleared out.
To clear the data that isn't needed and free up space go into your settings the settings will depend on the type of phone you have.
There should be some settings to clear data from your keyboard. Also clear up any other data stored on your phone that you no longer need as well.
Your phone is probably losing memory and that's what is causing the phone to crash.