Similar Items: Optimal Inapproximability of Generalized Linear Equations over a Finite Group