Replace compile assert with an error message during execution Change-Id: I4c054c65845b14bb980e165855693705c097ff80