Hello Usman,
Please make sure to hit the reply to all button to have your answers visible to the community.
Regarding the issue, it seems to be related to the OS version itself when handling/adding any additional repository (not only Wazuh) as you can check in this thread
https://ubuntuforums.org/showthread.php?t=2475181 a possible solution commented was to upgrade the version of VirtualBox if you are using it as VM.
Regards,
Wali