Hello Nicole, thank you very much for answering.
I also thought about hardware problems, using the manufacturer's own tools I did the tests corresponding to all the laptop's hardware, however no malfunction was shown, this was later confirmed by Lenovo's own technical service.
Finally I used a software called latencymon which indicated problems with power management, recommending to disable the CPU throttling setting in the control panel and in the bios.
I don't really know what this means, but if it's any help then I'll give it a try.