Therefore, the custom among us is to be stringent regarding the cutting of nails during chol hamoed, whether with a knife or with scissors, unless it is for the purpose of a mitzvah, such as a woman for her immersion. And certainly those who were explained to be permitted to shave during chol hamoed. Similarly, one who cut his nails before the festival, and had nothing to cut on the eve of the festival, and they grew during chol hamoed—he is permitted to cut them in any manner he desires (Magen Avraham). And it appears to my humble opinion that in a case of pressing need, one who was very preoccupied before the festival—he may cut his nails during chol hamoed, since such is the opinion of four pillars of the world. And it is permitted to take all types of medicines during chol hamoed. And even though through this he will not be able to delight in eating and drinking, nevertheless his healing takes precedence, even if it is not a complete illness. (So it appears to me, for it is not because of the prohibition that the Magen Avraham in subsection 2 wondered from siman 496, see there. This is the wording of the Tosefta brought by the Rif and the Rosh in the first chapter of Moed Katan: One may drink dung water..., see there. Examine and you will find it simple.)
ולכן המנהג אצלנו להחמיר בנטילת צפרנים בחול המועד, בין בסכין בין במספריים, אם לא לצורך מצוה כגון אשה לטבילתה. וכל שכן אלו שנתבארו שמותרין לגלח בחול המועד. וכן מי שנטל צפרניו קודם הרגל, ולא היה לו בערב יום טוב מה ליטול, ונתגדלו בחול המועד – מותר לו ליטול בכל אופן שירצה (מגן אברהם). ונראה לעניות דעתי דבשעת הדחק, מי שהיה טרוד הרבה קודם הרגל – יכול ליטול צפרניו בחול המועד, כיון שכן הוא דעת ארבעה עמודי עולם. ומותר ליטול כל מיני רפואות בחול המועד. ואף שעל ידי זה לא יהיה ביכולתו להתענג באכילה ושתייה, מכל מקום רפואתו קודמת, אף שאינו חולי גמור. (כן נראה לי, דלא מפני האיסור הוא שהמגן אברהם סעיף קטן ב תמה מסימן תצו, עיין שם. וזה לשון התוספתא שהביאו הרי"ף והרא"ש בפרק קמא דמועד קטן: שותין מי זבלים…, עיין שם. ודייק ותמצא קל.)