Experiencing sound and picture glitches playing video

Strange things.

Using the latest version of Kodi (Version: Kodi 17.1 Git:20170320-fc1619b, Build: Mar 20 2017).
While playing video files I experience sound and picture glitches (or micro-freezes). This happens after some time passes. The video and sound is clipping for a short time than OK. About 5 minutes passed and again glitching, but more noticeable. After about 15 minutes of playing, the sound hangs and than disappears. The video continue playing.
This happens only with Kodi. For example, MPCHC is working great, but is not so comfortable in use. Every other program, whether it’s a game or any other application, is working good and without any errors.

My PC specs:
Operating System: Windows 10 Pro (Registered Trademark) 64-bit (10.0, Build 14393) (14393.rs1_release.161220-1747)
System Manufacturer: Gigabyte Technology Co., Ltd.
System Model: B250-HD3P
BIOS: BIOS Date: 02/09/17 09:49:32 Ver: 05.0000C
Processor: Intel® Core™ i3-7100 CPU @ 3.90GHz (4 CPUs), ~3.9GHz
Memory: 8192MB RAM
Available OS Memory: 8146MB RAM
Page File: 3572MB used, 6109MB available
Windows Dir: C:\Windows
DirectX Version: DirectX 12

Thanks in advance!