Importing planet scale OSM is expected to take a very long time. But you would have likely a better experience using https://osm2pgsql.org/ which is dedicated to this task. The GDAL OSM driver uses a temporary SQLite database to be able to work with any output format.