Hi @sunette,
You can see instructions for setting a new temporary directory here:
The TMPDIR can be named whatever you want, does not need to be /data.
But if this is a personal computer I suspect the issue is not enough space on your hard drive, not TMPDIR, in which case creating a new directory will not fix... you should check out your available disc space first.