I am not as familiar with the NSAID causing an erosive stomatitis.  I understand that it can cause gastrointestinal upset, but given the choice between the two, I would think the methotrexate is the most likely etiology for the stomatitis.  