Even on a long term visa or to get a long term visa, the banks are reluctant to let people just arrived in Thailand a Thai bankaccount.
You may have to stay some months at a permanent adress in Thailand, before you can get a bankaccount.
Certificate of residence by the book require that you could show proff of staying at a permanent adress for at least 90 days, but some Immigration Offices bend the rules and are willing to supply it earlier.
That’s why banks no longer put any trust in certificate of Residence, and ask for other kind of proof of having a permanent adress in Thailand.
You are obliged to familiarize yourself with the laws in any country you visit, you have failed to do that, or you would have known the Requirements to make a 90 day report, everytime you spend 90 consecutive days in Thailand.
Even this group are full of posts telling the same.
If you were in doubt, you should have asked the Immigration Office or read their website.