@prattmic requested issue #64528 to be considered for backport to the next 1.21 minor release.
Thanks for the report and fix. I think this warrants a backport.
@gopherbot Please backport to 1.21. This can create invalid profiles when using generics with no practical workaround.