When I export OBJs with materials I get errors related to Mental Ray attributes that don't exist (I haven't used Mental Ray for years and the plugin isn't loaded). I'm using Maya 2019.1, and this error occurs using the MEL version of the command as well.
Are you sure these are Mental Ray attributes? What material types are you using? Even a plain ol' Lambert has these attributes. It's strange that your exporter is complaining about them. Makes me wonder if something else is connected to these, and OBJ doesn't support them. As a test, what if you start a brand new scene, and create a cube and plain lambert material and try exporting that as obj. If that works, then the next step would be to look at all your scene materials to see if anything has a connection to these attributes.