I think it would be better to try and find the actual fault yourself.
Any kind of modifications that can detect and control the lights independently would require cutting into unbroken and watertight wires, creating the risk of new failures in the future.
I follow the South Main Auto youtube channel. Eric O. is very good at finding electrical faults.
https://www.youtube.com/c/SouthMainAutoRepairAvocaHis technique is to use the wiring diagram to examine and test the faulty circuit from one end to the other. The wiring diagram will tell you which connectors and grounding points affect your lights. He even has a video on an Envoy with faulty low beams:
In this case, it was a faulty relay. In other electrical fault videos he would continue by following the control wire back to the Body Control Module. For example, you can test if the control wire signal is present and steady at the relay socket. A multimeter alone could be misleading because it does not load the circuit. Eric O. would use a low wattage automotive bulb on jumper wires instead. That would prove that the control wire can send enough current to drive the relay. If there is an intermittent break in the connection, the bulb may flicker. By using the same technique on every connector, you can prove that each section of the wiring is working.
Be very careful probing automotive connectors. They are delicate since they are made as cheaply as possible. A multimeter probe would probably ream them open permanently. The recommended automotive probe pin is the T pin from the sewing or office supply store. The T-shaped handle allows for a reliable connection with an alligator clip.
In most of SMA's videos, the fault is usually a corroded or broken wire or connector. Try and follow the wire as close as you can and look for abrasion in the loom or tape covering the wiring harness. Often the fault is in a shoddy previous repair. Look carefully at every connector for signs of corrosion.
Unfortunately, a lightly intermittent fault is most difficult fault to repair. Even South Main Auto refuses to work on intermittent faults.