First acknowledge the problem is yours to solve. Don’t expect or disparage the teachers for their “inflexibility”.
In the “real world” and college is a step in that direction people will be understanding of differences but not tolerant of it translating into misbehavior. Contextualize the impact your behavior has in terms of how it potentially distracts others or adversely impacts the learning environment.
Second seek professional help to identify methods of remaining focused. Plenty of help is available. It needs to be specific to you.
By “owning” the issue and seeking help you hopefully will persuade your educators that you are determined to improve and acting maturely. They will hopefully be supportive and together help you forge a path for success going forward.