Besides for these three sins, the Gemara (Sanhedrin 74a) clearly writes that there are two other situations which require one to give up his life: in public and in the context of persecution against the Jewish religion. Thus, any threat to death which is directed towards the Jew to abandon his religion must be met with martyrdom.
As far as I know, Rambam does not discuss this explicitly in his Moreh Nevukhim, but he does mention this case in a famous letter-responsum known as Iggeret ha-Shemad. There, Rambam actually rules that one is permitted to verbally announce that he believes that Muhammad was a prophet, even though doing so gives off the impression that one is accepting Islam, which is a heretical religion (Hil. Teshuvah 3:8, or 3:17 in this version) despite not being idolatry (Hil. Ma'achalot Asurot 11:7 or 11:4). Although mere acceptance of Muhammad as a prophet might not be heretical (kefirah/epikorsut), in Iggeret Teiman, in the Iggeret ha-Shemad, Rambam appears to encourage that one not give up his life when forced to convert to Islam, and instead simply keep a low profile (and try to get out of that country ASAP). This seems to be because a person can't just change his beliefs because someone puts a knife at his throat, and so the Muslims must know that we don't actually believe in their religion even after forcing us to profess belief in it.
Here is the relevant passage from Iggeret ha-Shemad
דע שכל השמדות שהיו בזמן החכמים, היו מצווים בה לעבור על המצות, והיה בם עשיית מעשה. כמו שאמרו בתלמוד שלא יתעסקו בתורה, ולא ימולו את בניהם, או שיבעלו נשיהן נדות. ואולם זה השמד לא יתחייבו עשיית מעשה, זולת הדיבור בלבד... וכבר נתאמת אצלם שאין אנחנו מאמינים באותו הדיבור ואינו בפי האומרו רק להנצל מן המלך, כדי להפיס דעתו בדיבורים מן הדיבור. וכל מי שנהרג כדי שלא יודה בשליחות אותו האיש, לא ייאמר עליו אלא שעשה
הישר והטוב, ויש לו שכר גדול לפני השם, ומעלתו במעלה עליונה כי הוא מסר
עצמו לקדושת השם ית' ויתעלה. אבל מי שבא לשאול אותנו אם ייהרג או יודה,
אומרים לו שיודה ולא ייהרג. אבל לא יעמוד במלכות אותו המלך, אלא ישב
בביתו עד שיצא אם הוא צריך, ומעשה ידיו יעשה בסתר... ולא יראה מדברי רז"ל
שיאמרו ייהרג ואל יעבור ואל יאמר דבר אחד שאין בו מעשה. אבל ייהרג כאשר
יחייבוהו לעשות מעשה, או על דבר שהוא מוזהר עליו.
As Shilat writes (Iggerot Ha-Rambam page 40, note 8):

However, this lenient opinion appears not to have been shared by many others, and is relevant to the question of whether or not one should give up his life before being forced to convert to Islam. Rabvaz (She'elot uTeshuvot Radvaz, nos. 344 and 1163, or vol. 4 no. 92) quotes the Ritva as arguing with Rambam and require one to give up his life instead of admitting to Islam. He writes explicitly that one must give up his life before professing belief in kefirah:
והוי יודע שאמונת הישמעאלים אעפ"י שהם מייחדים, ע"ז גמורה חשיבא ליהרג ואל ישתמד שהרי המודה באמונתם כופר בתורת משה שאינה אמת כמות שהיא בידינו וכל כיוצא בו ע"ז היא, ולא אמרו בשאר מצות יעבור ואל יהרג במתכוין להעביר אלא כשאומרין לו חלל שבת כדי לעבור על דתך, לא שיאמרו לו חלל שבת כמודה שאין תורתך אמת ולא ציוה הקב"ה לשמור את השבת
This view may also have been held by Ran (Chiddushei ha-Ran to Sanhedrin 61a), but this was likely not actually written by Rabbeinu Nissim of Geronda.