LPS-51463 Change to throw AssertError to prevent log4j from swallowing t...

...he error