If it happens only when trying to message a particular contact, you can find the transcript (history) file with that contact and delete it. In the Spark profile folder of the crashing Spark.
C:\Users\username\AppData\Roaming\Spark\user\username@jservername\transcripts