Many Electroconvulsive Therapy (ECT) clinicians would think long and hard about this situation, as this as a relative contraindication. There is an increase in intracranial pressure that accompanies the seizure of ECT that could be exacerbated by the presence of an intracranial space-occupying lesion. With regard to other treatments, the prevailing sense at present is that Transcranial Magnetic Stimulation (TMS) does not usually affect intracranial pressure.
See the APA 2001 Task Force on ECT:
The Practice of Electroconvulsive Therapy. Recommendations for Treatment, Training, and Privileging (A Task Force Report of the American Psychiatric Association), Second Edition
And the ECT Policy for New South Wales:
High Risk Situations
Intracranial space occupying lesions: Intracranial pressure that has been increased by a space-occupying lesion may be increased further by ECT, possibly leading to coning.