There is a recall on this issue. The headlamp driver module (HDM) is bad.
Take a look at the pics below. I attached everything from the recall. What to do is contact a dealer and see if they will still take care of the problem (they should if it hasn't already been done on your vehicle). Have your VIN number ready when calling.
Let me know if this helps or if you have other questions.
See pics below.
Images (Click to enlarge)
Tuesday, July 20th, 2021 AT 9:23 PM