Ceiling Fan lights turn off on their own w/ a Twist
It’s hard to tell for sure but if it was working normally until recently I’d say the electronics for the remote control receiver are failing.
You can bypass the remote unit and connect one of the wall switches directly to the light kit. You can keep using it that way or replace the remote and receiver with a universal ceiling fan remote control kit.