A UA(1) symmetry restoration scenario supported by the generalized Witten–Veneziano relation and its analytic solution