Repairing a bent crankshaft can cost $200-500 for parts and labor if you take it to a small engine shop. Replacing it will run $300-800 or more depending on the mower model. The best way to avoid this expense is to prevent damage in the first place.
Regularly inspect the blades, avoid obstacles when mowing, and maintain proper engine function.