You can control your thoughts.
Read: Philippians 4:6-8
Do not worry about anything, but pray and ask God for everything you need, always giving thanks. 7 And God’s peace, which is so great we cannot understand it, will keep your hearts and minds in Christ Jesus.
8 Brothers and sisters, think about the things that are good and worthy of praise. Think about the things that are true and honorable and right and pure and beautiful and respected.