Awasome My Ceiling Fan Light Turns Off By Itself 2023. Is it a wall switch dimmer? Pull switch is broken or defective.

Check voltage on all receptacles as well. This article explains the problem and how it's resolved. The issue could also be the result of power spikes or momentary interruptions in your power.