Repairing the damage from a spun bearing could be very expensive. A crankshaft main bearing spun could ruin the engine block as well as the crankshaft, and a spun connecting rod bearing wouldn't necessarily damage the block but would ruin a connecting rod and damage the crankshaft as well.
I don't know how much this would cost, estimating would be quite a job, of course I'd have to inspect the engine myself to evaluate the damage if I were estimating it.
I think you may be interested in finding a guaranteed used engine and have a qualified Subaru expert install it. You need to find a Subie specialist and get him to evaluate your situation.
If you want to find a specialist, here's our directory link for you:
https://repairpal.com/directory?address=55082&car_bra...