Did you already have ERPNext installed? or was this a second attempt at installing?
In any case, assuming you don’t have any data on this, it’s better to reinstall the site.
bench --site sitename reinstall
Tried it already. But no use. It showing same error even after reinstalling the site.