Erasing $\epsilon$ production from CFG
You cannot erase the $ϵ$-production from this grammar and keep the same
language. The reason is that since you have the production $S\to ϵ$, the
language contains $ϵ$. And the only way a CF language can contain $ϵ$ is with
an $ϵ$-production.