Sorry for spamming my own thread, but I found the solution and wanted to share it if anyone else struggles.
I realized I could snap the spline to the landscape in the spline BP too. I therefore added this function, which I call before spawning the meshes on the spline.