How do you cope with your baby's crying when sleep training ☹️

My baby is just shy of 5 months and I've decided he is ready for sleep training. I know it will be best for my family but last night was our first night and it broke my heart and stressed me out! How do you handle it? It will get better soon, right??