Please read these two articles to see whether you are qualified for Modifications to the Oath:
Chapter 3 - Oath of Allegiance Modifications and Waivers | USCIS
Modifications and Waivers to taking the Oath of allegiance (ilrc.org)
Then, read this article for how to apply for modification to the oath:
Naturalization and the Modified Oath for Jehovah's Witnesses - Legal Guides - Avvo