class="chapter" is the problem, I believe.
But then again, so is the pagebreak.
calibre scans for class="chapter" to locate chapter beginnings. You can change that in Structure Detection, but it would probably be a good idea to get rid of it anyway.
the specified pagebreaks, on the other hand, are built into the book already -- but either or both would be sufficient to cause these problems.