I think it's important to take regular breaks because pair programming or mob programming requires a very level of high energy. The code quality definitely improves because of many eyeballs into the problem and provides an instant feedback for the code written.