Error analysis for the deep Kolmogorov method