God is not sending trials into your life to make you more holy or teach you lessons. Tribulation will come in this life, it’s unavoidable, but it’s not from God.
Your faith is tested when you are tempted. Sometimes you pass the test; sometimes, you don’t. The good news is that God will give you wisdom to stand in the spiritual gift of patience until you are free from the trial/temptation and become more mature in that area. He wants to help you out of it. You can ask God for help, and he will help you without finding fault or rebuking you (James 1:5).
When you face the trial/temptation in the power of patience, it causes you to grow up in that area and become more mature. If you are tempted in an area or continue to face specific trials, ask God for help, He wants to help you. Don’t accept it as His will and embrace the pain.