Well, it seems that the problem has been solved: that high usage of the CPU has not occurred for days. The point is that, as is often the case in these cases and having made more than one change, I don't know exactly what has solved it.
Since I suspected that the problems came from the EPG, instead of installing it through a script that configures everything, I did a manual setup from scratch. I doubt that this was the solution, because with the script it had always worked correctly.
I think the problem was in the existence of 2 ".hts" folders; the one corresponding to my old installation in the address "/home/user folder/.hts" and the one that had been created with the updates in "/home/.hts". First I renamed the old one to ".hts.old" and then after a while I removed it and the problems disappeared, I understand that, for some unknown reason, both configurations interfered and generated the problem.
I would still like to know if the high CPU usage by Tvheadend player compared to VLC is normal.
Greetings and thanks for the help.