Sticky UITableViewController section header reveals cells below

In my UITableViewController when a sticky section header is replaced by the following header in succession, the cell below is revealed for a short time. This looks like a glitch to me. Is there a workaround to solve this?

The issue is best explained in video: https://youtube.com/shorts/JIEbFTTIDjA?feature=share

Sticky UITableViewController section header reveals cells below
 
 
Q