A Bassline I struggled with for a long time is this, it’s not technically hard but I couldn’t get the timing changes, I broke it down into sections and note by note each day, but still made mistakes, then I left it a few weeks and came back to it and played it spot on. Having a break works well for me. I also find listening to the song while I’m driving helps to memorise the bass.