Separate out Grounds fom eachother

Only source of surges/Spikes is from Relay coil circuit to transistor . Can surges goes to esp32 from Collector/Emitter to base of transistor?