Hmmm I got this before and the value error was a little misleading -- it might also be a general connection issue
You can try testing for yourself by running a query outside of llama-index
with driver.session(database=database) as session:
result = session.run(query, param_map)
print([d.data() for d in result])