Text this: Error investigation of finite element approximation for a nonlinear Sturm–Liouville problem