Okay found the answer by trying to rerun the same on windows env. The problem was that the driver variable pointing to a wrong location. The same when ran on a windows env clearly pointed out the error with the variable pointing to a wrong location, whereas in macOS it gave the SIGBUS error which is really hard to understand (at least for me).