Hello.
That 0x80070306 error usually indicates a revision mismatch within your Windows Component Store, which means it is seeing a version conflict that cannot resolved during the update.
You should run an elevated Command Prompt and execute dism.exe /online /cleanup-image /restorehealth followed by sfc /scannow to repair the system image and file integrity.
If the installation still fails, you will need to reset your local update cache by stopping the wuauserv service and renaming the C:\Windows\SoftwareDistribution folder to something like SoftwareDistribution.old. Restarting the service after renaming that directory forces Windows to re-evaluate the update requirements for KB5078740 from a clean slate.
If you find my answer useful, please mark it as the "Accepted Answer" so other members can find the solution easily. Your help in supporting the community is much appreciated!
Best regards,
Scott Nguyen