Why did I feel really sick after having an electroencephalogram?

Not sure. If you had sleep deprivation, photic stimulation and hyperventilation those might have played a part. If you were laying down for a prolonged period you might have had some acid reflux or a muscular tension type headache. Certainly wans't related to the eeg itself as it only records electrical signals.