Yes if you have deleted files there will be a hole in the naming of the files, so ( example ) if you have files named 2015 - 2016 - 2017 - 2018 and then next files are named 2036 - 2037 - 2038 ECT then you have a hole if missing files that have been created but are deleted now.
Where as if your file names are all consecutive your camera have been recording but just not right at that time.
you also say 2 years, so what have you done in regard to maintenance and so in that period, you should format the memory card every month or two, and you should also look over the recoded footage now and then to see if something like this is happening as that could be a sign of something having failed or are about to fail.
It take me 5 - 10 minutes to look over a 128 GB memory card on the computer.