Thank you for asking this question on the Microsoft Q&A Platform.
The issue is related to your kernel version, not the Ubuntu version, this is the Supported Ubuntu kernel versions for Azure virtual machines (Also applies to on-premises OS)
With the command uname -r
you can determine your kernel version.
Hope this helps!
Accept Answer and Upvote, if any of the above helped, this thread can help others in the community looking for remediation for similar issues.
NOTE: To answer you as quickly as possible, please mention me in your reply.