Read the documentation of ogr2ogr and about its config file which tells it how to interpret OSM data.

Also, try removing that or natural=‘water’ clause to check if it succeeds at all without it. Maybe ogr2ogr doesn’t work at all, but throws a fake error instead.