Failure is part of it. You will be rejected dozens and dozens of times. The best way to prepare for it is to have something else in the works by the time the rejection letter arrives. Invest your hope in the next project. Learning to cope with rejection is a good trait to develop.