After numerous configurations, I finally managed to fix the problem by updating the BIOS again to version 7b05v1G.
As mentioned before, here are the steps I took from the beginning, which I believe, along with some updated Intel driver for the i9, should have removed the bug. Even without any configuration changes, the computer continued to turn on by itself at 00:00. If I changed the BIOS time to 23:55, after 5 minutes of being off, the PC would turn on by itself. Therefore, it may be a bug in the wakeup configuration that, even when disabled, still caused it to turn on.
I use Windows 11 on my PC and the default clock configuration, only adjusted so that the processor clock is configured by Intel to reach turbo speed. Even when idle or at stock speeds, the error still occurred.
A summary of what I identified to add for future clients with the problem:
1- I had changed the CPU to an i9 10940x where it presented the 0F error because the BIOS version was invalid and older.
2- I went back to the i7 7800x and then updated the BIOS using flash to version 7b05v1G. In this update, I noticed that it took longer than the last one that solved the problem. After the update and the restarts and optimizations on its own when entering Windows, I then turned it off to change the CPU.
3- I went back to the i9 and it was recognized, entered the BIOS normally and performed a small optimization.
4- I entered Windows and ran some processor tests, as it was a used processor I wanted to test and ensure its full functionality. I tested it with Intel's program and others, checking the quality, and no defects were reported in the CPU.
5- On the first night, the motherboard started turning on by itself at midnight, and then in the following days I kept changing the settings until I found one that didn't cause it to wake up on its own.
6- I opened the BIOS and tried to use the default configuration application button. When trying to save the configuration, the PC froze and even after 15 minutes it didn't restart, forcing me to press the power button. I did a manual reset with the button on the back of the motherboard before entering the BIOS and optimizing again.
7- The error persisted in the following days, and I noticed that by configuring the internal clock, the PC always turned on regardless of the configuration.
8- After trying several configurations, I reset the BIOS again using the button and then removed the battery to ensure everything was reset, turning it back on after 1 hour and entering the processor optimization mode.
9- I found some saved overclock settings for the i7 processor, possibly some optimizations I made in the past in 2022, which I deleted manually. I found it strange that even after resetting the BIOS, the setting was still present.
10- I updated the drivers through Windows as instructed by support, and also the driver provided. The intel_me_11.7_X299 driver, which was provided by support, was installed. Installation of the chipset driver was recommended but did not occur in Windows due to incompatibility. 11- Whenever the internal clock struck 00:00 and sometimes 01:00, the PC would turn on by itself. Simply unplugging it didn't make it turn on, nor would it turn on when powered on, only by pressing the power button, which may be due to a timer or something similar.
12- I searched all the information in Windows and there were no active auto-start settings.
13- I searched the forum for similar errors and had no success. I didn't want to revert to the previous BIOS version since the processor doesn't support it, and updating it is dangerous due to potential power outages; I think it's always a risk.
14- This morning, after support suggested it, I updated the BIOS again to the same version, taking some before and after photos. I noticed that this update was faster, finishing in less than a minute.
15- I lost all the BIOS settings, and I noticed that even the optimization was not present. I reconfigured the fan and PCI partition settings, as well as turning on the ERP so it wouldn't be unnecessarily powered.
16-In the first test it didn't start anymore, so after the parameter settings I set the time to 23:55 and waited more than 2 hours with the clock set to 23:55 and I didn't see the PC turn on by itself.
I believe it was a problem with the first update that must have left the BIOS bugged and turning on by itself despite the wakeup settings being completely disabled, whether using the BIOS or OS model. After a new update, but already with the i9 CPU and the Intel driver installed, I no longer had the problem.
To anyone who has the same problem, considering that the i9 10940 is cheap on AliExpress and it is necessary to update the BIOS, I recommend that you keep updating the driver and if even after resetting the settings you notice that it is still present, a new update solves the problem. I don't know if the overclock profile influences anything, but since I no longer had the processor I removed all of them.