Unfortunately for you if it isn’t plumbed that way, the best fix is to have 3 drainpipes. First pipe is set to be always-siphoning with a valve. Second pipe gets just a tiny trickle of whatever is left over after the first. Third is a true emergency drain, in case of failure/clogging of the others.
Second best is probably to do the same but just without the third pipe, the emergency drain. Set the first drain to be barely always-siphoning with the valve, so that it doesn’t periodically go in and out of siphon.
Third best is probably to get rid of #1 drain above by opening your first valve all the way so that it takes all the water and the second pipe is the emergency. Safer but noisier. Will have a lower water level in the overflow.