Progenitor and environment of the peculiar red nova V838 Monстатья