Buying a house but can’t get insurance, now what?

Buying a house. Seller accepted offer, inspections are done. I need a new roof which i planned on doing after purchase.

I can’t get insurance after closing without new roof. Problem is with roof the lead time is about 2 months.

So now I’ll have a house but no insurance for two months!

What in the world do I do? This feels extremely unsafe and did not see this coming.

Help.

Edit: I’m buying cash. So I won’t have a lender/mortgage.

Edit 2: extending our closing and trying to see what we can do about roof coverage. Really appreciate the input here. It had really made this much easier to grasp. Thank you.