Some error codes are generated by the application; Then, the others are by OS (Windows)
"disk may be full" error happens in other applications as well; so it is most likely Windows.
When a disk is actually full to capacity Windows will error code: 'paraphrase'; "there is not enough room to save your data"
The most likely fault with "disk may be full" is when the MFT (master file table) on the hard drive becomes corrupted.
Every program type uses its own extension to write to the MFT. In Sonar's case .cwp etc.
Both the application and Operating System tries to work in harmony to preserve this integrity.
But "schitz happens". It used to be when this stuff begins happening too much, means the hard drive is beginning to malfunction.
As a note to myself; I never got schooled/learn/train on the operation of these newer SSD drives; but to think, for backwards/legacy purposes it has to be similar.
Best practice is to 1: Save periodically 2: 'Save as' often as significant changes you make to your project. This in effect generates a new or a rewrite of the MFT file.