The error is probably due to an extra vacant row in your input. There should be only one empty row between '# wb97xd/gen pseudo=read scf=maxcycle=1500 pop=nboread' and 'NI' in your input. Please use the file attached as the input. Hopefully, it will solve the issue.
The solution by Vipin Ray K is absolutely correct and it works. Please note that allocating 120GB for your calculation will slow it down. With 28 props, d/f functions and 1186 basis functions you need no more than 380MW of RAM, corresponding to about about 3GB.