I was able to fix it by replacing the failed lid switch
https://www.amazon.com/gp/product/B07MXCZ4HQ/