Common practice from VC is to do a 3rd party financial audit - billed to the startup in the end. Very expensive, but as you mention, it helps uncover potential ticking time bombs.
It's easy to complain about a heavy, expensive finance audit, but startups commonly are setup or practicing mildly to extremely incorrectly. It's just too risky not to do it.
Tech audits seem to fly under the radar a lot. Post deal, I've had one principal complain to me a portfolio company was using a single table for users & bookings just more columns - what. Ruined the company for 14 months to fix the tech with all the deployed money and the business never recovered. Extreme, but there should be someone looking.