You can run LanguageTool locally. While it isn’t as great as the paid version, I use this to check nearly everything I write for work in my native language, and in the other languages I speak
caderek.github.io/gramma/ is a cli spellchecker that has the option of installing a LT server locally. Not ideal if you are writing things with Pages/Word/etc., but a possible backup.