Try adding view-transition-name: anything to your sticky elements. The value can be literally anything and does not even have to have the old and new state. This fixed the problem for me.
view-transition-name: anything