My first piece of advise only really applies if you're in a school or a job where you can complete your work at whatever hours in the day you want, so skip to the second paragraph if that doesn't apply to you. If you find it difficult to be productive work like a lazy person. What I mean by that is you don't have to stay focused on your work the whole time. I have a naturally terrible attention span, so I do this easily. I dedicate 12 hours of my day towards work, but I'm only paying attention maybe half the time or for 8 hours when I'm feeling more productive. For me, not paying attention can mean just getting lost in my thoughts for 5 minutes, but for you it could be watching youtube videos, listening to music, watching a twitch stream, browsing online, etc for 5 minutes when you find yourself struggling, then go back to work for 5 minutes again, then go back to doing something fun.
Also if you're in college and attend on campus you might find it easier to attend an online university where lectures are prerecorded and you can use online text books with speech to text functions. Even if you attend a university on campus there are still some online textbooks you can get, if the text book doesn't have a speech to text feature you can get a program of one online. With those you can do stuff like playing video games while listening to them and learning at the same time. It would have to be something more on the simple side so you can still listen to lectures and text books.
That's all the advice I can give, hopefully at least something here helps a bit.