I once lost three hours of work early on during my learning, not much that I lost but it was a moment when I learnt a lesson. Never lost work after that ever.
Food and shelter are the basic need for survival, what Buddhism teaches about is the life after survival, which is far longer for humans than any other animal on earth, because of their high intelligence.
I remember having this issue about an year ago. If I remember correctly I changed the clang from 32-bit to 64-bit binary. I just installed 64-bit version of clang using scoop, which for some reason installed the 32-bit version by default. It worked that way no problem.