Buy yourself time.
If you are 100% certain that you can find a new job whenever you need one, you could just quit your current job and use your funds to buy yourself time.
Create a bank account for emergencies. Put at least $5k there.
Use max. $5k for starting a business.
Use the rest $20k+ to cover for necessities (rent, food, electricity, etc) as long as possible.
I don't know where you're from but $20k+ will (most likely) last you at least 8-12 months. That's plenty enough to start a profitable business if you work hard enough, which you now could as you aren't bound by a 9-5.
Investing $30k in anything without any prior experience (which I reckon as you're asking these types of questions) is stupid and you'd most likely just end up losing a big portion of the money.
You don't need that much money to start most IM businesses either way.