If you read the MANY posts about your question...you would find out that there's NO limit on entry into Thailand as Visa Exempt Entry each year.
However your entry is at the discretion of the Thai Immigration Officer who greets you on arrival.
And it's apparent that Thai Immigration Officers are More strict now than before in questioning those who are seeking to enter Thailand many times. With DENIED entry.
Suggest you get the correct Thai Visa for your planned visits and stays in Thailand.
You will need a medical diagnosis for your care from a doctor and hospital in Thailand. Outlining the treatment plan and need for your care over extended time.
Otherwise get a METV multiple entry tourist visa, gives you up to 9 months Stay with planning.