If this were my car, I wold look around for a good used engine. It sounds like you have the skills to install it.
Things happen. Our son's 2009 Impreze blew it's engine (literally) at 30,000 miles. The Service Manager at Subaru said " We've seen this before"