The pins in the hinges tend to swell and stick after awhile. They have known about this issue for years. My older truck had the same thing.
In time the door hinge gets bent out and the interior lights will stay on, as well as warning signal about door being open.
I took my trucky poo in the other day while it is still under warranty (6 months left) and it took them 2 days to swap out the pins and brackets with ones that have grease ftgs.
If you are having this problem tell them to fix it ASAP, if its out of warranty ***** about it being a known problem for years.
Even the Mgr at the body shop admitted to that.