Is making a game about nazi's illegal?

That’s definitely not discrimination.

A. Discrimination in the USA only applies to things like employment, house, and public accommodation, and only for things like age, disability, national origin, pregnancy, race/color Religion, sex, etc.

B. You have to accept UE4 terms and conditions, you don’t have any right to be able to use the engine.