Extreme events in systems with discontinuous boundaries