If your mind is filled with defeat thoughts, fear thoughts, resentment thoughts, you are bound to be in a state of mental unrest, even turmoil, and of course there can be no inner peace.
This passage advises you to practice thinking about God, to keep your mind “stayed” or fixed, not upon your troubles but upon God.
Keep your mind on God for as many minutes during the day as possible. This may be difficult at first for you are unused to spiritual concentration. Practice will make it easier.