This is caused by VMC on AWS NSX component and VCDR use case, any eternal environments on VCDR production environment who selected support for Carbon Black integration can observe problem and cannot install Linux sensor.
This is a known issue for SDDC versioning 1.22v2 and lower versions. In the particular NSX versioning associated with SDDC version 1.22v3 would have the known long-term fix.
Please check VMC on AWS SDDC version via VMC Console navigation of "Selecting SDDC" --> "Support" tab and verify if SDDC version, is below 1.22v3, if it is then please coordinate a SDDC upgrade with VMC on AWS GSS support to coordinate and schedule an SDDC upgrade.
SDDC Upgrades and Maintenance Public Document Reference - https://docs.vmware.com/en/VMware-Cloud-on-AWS/services/com.vmware.vmc-aws-operations/GUID-EE89B216-BE93-4A1A-9280-8F20E2A5266F.html