So I have this…friend…
I find this is a pretty common problem in the tech space because the business can grow very very quickly. The answer is quite nuanced and would require more details unfortunately.
Hate to say it but you’re going to have to call an accountant.