If you find something difficult and are afraid that you won't be able to persist, then do less of it. When you finish it and feel good, then increase the difficulty level by a little bit on the basis of the original level.
Once you can complete it, give yourself a reward. Keep persisting and gradually, your brain will no longer resist but will even find it interesting. In this way, for you, this task will no longer be as difficult as it was at the beginning.
For many things, if no one teaches you and you haven't figured out how to do it yourself, you can first look at those who do it well. You can learn something from their experiences. Read more books and think less.