What is the version of the following sentence with correct punctuation?

For patients with health anxiety it is not the symptoms that constitute the problem but the thoughts and fear that the symptoms could be caused by a serious illness
For patients with health anxiety it is not the symptoms that constitute the problem, but the thoughts and fear that the symptoms could be caused by a serious illness.