Video: Canon R5 8K RAW glitch in last frame of rendered clip

Sometimes (not always) the last frame of a clip shows what looks like a lens correction error. Only shows on render. It is not visible when editing in the timeline. Makes the transition between clips slightly jarring.
Short video made from rendered clips:
Shown in realtime at first, then the error frames are duplicated to make it more visible.
This happens when rendering a complete video and when clips are rendered individually.
Windows 11, Davinci Resolve Studio. Have you seen this before?
Render Settings:
Short video made from rendered clips:

This happens when rendering a complete video and when clips are rendered individually.
Windows 11, Davinci Resolve Studio. Have you seen this before?
Render Settings: