It is a Qt bug. That exact bug is in the QTBUG database here:
https://bugreports.qt.io/browse/QTBUG-118217
and here
https://bugreports.qt.io/browse/QTBUG-118118
and the fix is here:
https://codereview.qt-project.org/c/qt/qtbase/+/510660
It is a Window's specific bug.
Unfortunately Qt 6.5.4 with this fix has not and will not be open sourced for a full year.
So we will need to extract that fix and apply it somehow for Qt 6.5.3 for the next release.
Update: Just for the record, grabbed that official fix diff and attached it here so nothing gets lost.