Question about mentality and God

Hi everyone,

I apologize in advance if this is a silly question but I’m sort of in a predicament.

I’ve found the Lord Jesus earlier this year, and I’m so happy that I have.

This semester in particular has been really bad for my mental health and grades. Before, this semester I used to be confident in myself and engage in positive self talk such as “you’re smart dude this is easy for you” “you can do this you’re smart.”

My main question is, is this wrong to do as a follower of the Lord Jesus? I want to be successful again in school, but I also want to remain faithful to the Lord and his teachings. I can clarify anything in the comments if needed. Thank you.