Find ways to reduce distractions. Some things that can help include muting phone notifications, using time management apps, and finding quiet places to study.
Definitely a weak spot for me. I always have my phone with me for music usually but i easily get distracted and take too many breaks. If i could focus longer i would stay more consistent with the material at hand.