It takes time to start a good habit. Habits make it mentally easier to do something as the mind doesn’t have to put in much focus and energy into it. It comes naturally.
There was recently debunked study regarding the presumption that it takes 21 days to cultivate a habit. The conclusion was that it would take much longer than that, a rough estimate being 66 days.
Routines do not come easily, neither are they started easily. You can’t expect to get everything right the first time. It takes awhile to adjust to it. I personally give myself a month or two before I settle into a routine.
The important aspect of it is to not give up(as cliché as that sounds). Learn from the challenges inhibiting the habit and overcome them.