Your examiner/instructor/trainer should include in their brief ‘engine failures will not be simulated below XX AGL’
If they don’t brief it, ask them about it before takeoff.
If they don’t put a number on it that sounds reasonable, you are getting closer to being one of these stories.
Thank you to all my mentors who have imposed limits during training.