I don't know if this is directly related to your question, but the upper staff (at least the two measures you copied) would be more easily read if all notated in F clef rather than G clef. (Having two F clefs--or two G clefs--is perfectly acceptable piano notation.)
Comments
See https://musescore.org/en/handbook/4/cross-staff-notation
In reply to See https://musescore.org/en… by Jojo-Schmitz
Or write it in a 2nd voice on the upper staff.
See https://musescore.org/en/handbook/4/working-multiple-voices
I don't know if this is directly related to your question, but the upper staff (at least the two measures you copied) would be more easily read if all notated in F clef rather than G clef. (Having two F clefs--or two G clefs--is perfectly acceptable piano notation.)