The beer is fine. When a ferment is going this wildly it is pushing off so much CO2 that no other microrganisms can fall in and contaminate it. Also, the yeast are replicating so fast that if any wild yeast or bacteria fell in most likely it would be consumed by the yeast. Take the airlock and stopper, sanitize and clean them, and reinstall. Have a pint of beer! Trust us you will have many more yeast explosions in your homebrewing career. Something to remember is every yeast ferments differently at unique temperatures.
All contents copyright 2021 by MoreFlavor Inc. All rights reserved. No part of this document or the related files may be reproduced or transmitted in any form, by any means (electronic, photocopying, recording, or otherwise) without the prior written permission of the publisher.