My best suggestion is to get some ADA accommodations in place. It helps some. Still not fool-proof since our brains really are not optimized for boring office settings, but it has at least helped me make it more manageable. I was able to get the following accommodations: access to private office area (reserved ahead of time) for when I need to really focus, a laptop so I could work remotely as planned ahead with my supervisor, ability to work off hours as appropriate within the office’s workload, all assignments in writing
Like I said, not a substitute for a more engaging job by any means, but definitely makes it manageable enough for me to not just impulsively quit and lose my benefits and pension. Good luck!