I hope moving the swap file to a different drive solved the problem.
Let us know please if it did or not.
If it does, it is a good suggestion to avast to implement a free space check to avoid crashes.
If there is not enough free space, it should let the user know so (s)he can take action.