If you want to investigate the failure further from an older kernel.
You could check if these issues are caused by a third party driver not compatible with the latest major kernel version or drivers installed via the Software Updater --> "Additional Drivers" tab.
These will cause the dkms command to fail during the Kernel installation
To check if you have any third-party drivers installed
sudo dkms status
Take note of the driver name.
Then to remove these from the current kernel.
important: These driver will be removed from your current kernel so if you remove for example a driver for wifi, you will loose access to wifi after the next reboot!!!
sudo dkms remove DRIVERNAME
Re-run the software updater to re-install the latest kernel and reboot
Then re-install the driver via Software Updater --> "Additional Drivers" tab or via any other way that you originally installed it (also check if the provider have made a new update for the latest kernel)