This suggests that you are going to need more than $500,000 as you wait around for payment.
Given you are almost dead and if don't have any options then go to your buyer and say to them unless you pay now there will never be a product. Maybe offer them some period of exclusivity in return for paying now.