If your smoke alarm is faulty you should replace it. Unlike most hardware, faulty smoke alarms can directly lead to the death of yourself or family. It's the one form of tech that I 100% replace when any problems occur.
There is no situation where you should accept or ignore a faulty smoke alarm.