The traditional cure for sailboats that want to sail up, luff and fall off on their anchor rodes is said to be more windage aft, to counteract the bare-poles situation of the center of effort forward of the center of resistance. I’ve never sailed a yawl, but this is supposed to be one of the nice advantages of a yawl at anchor in a breeze. Setting the mizzen, sheeted in fairly tight, is supposed to keep the boat weather-vaned into the wind (and “luffing” under bare poles) so that it rides head to wind on the anchor rode and does not try to reach off and sail up on it as in your diagram. In the large foretriangle sloops that I’ve owned, I’ve noticed some tendency to do this just from having the cockpit bimini up, especially if I have some of the side-screens zipped in.