Have you tried searching for any solution? Different workarounds work for different people so I would start with sticky thread about fixing IwD2 problems, then try this topics:
(I'm not allowed to post urls for some reason, so you would have to paste them manually)
gog.com/forum/icewind_dale_series/fixing_poor_performance_on_windows_10, gog.com/forum/icewind_dale_series/iwd2_game_will_not_start_on_win_10, gog.com/forum/icewind_dale_series/windows_81_directdraw_solution_for_iwd2, gog.com/forum/icewind_dale_series/win10_iwdii_lag.
You can also try changing some in-game graphics options or set compatibility mode.