You can change the reason for your extension of stay (it is not a visa) from attending a school to retirement.
You will need a letter from the school stating the last day you will be attending classes to cancel the extension.
The 800k baht will need to be in the bank for 2 months on the day you apply for the new extension.