It is easier to bear hard times if you say to yourself, "I may not deserve this punishment, but I do deserve others that I have not received."
Realize that our Lord treats us so much better than we deserve. Thank Him for His grace, and then go treat others as you are treated.
You have also forgotten the exhortation addressed to you as sons: "My son, do not disdain the discipline of the Lord or lose heart when reproved by him;
Hebrews 12:5 (NABRE)