Gaps in HRV data during night

During the last night's this is what my HRV readings look like.

The data is getting inconsistent because of this. Is anyone familiar with this problem and might know of a solution?