Can't find a codec for class org.hibernate.ogm.datastore.mongodb.type.GridFS

It’s not something I can answer. You need to write some performance tests and check if mongodb can handle a list of object of that size for your use cases. If it can, I wouldn’t go for the GridFs solution unless it performs better.