Additional SQL Server features and topics not covered by specific categories
Consider this:
CREATE PROCEDURE innermost_sp AS
SELECT a FROM #temp
go
CREATE PROCEDURE middle_sp AS
CREATE TABLE #temp(a int NOT NULL)
EXEC innermost_sp
go
CREATE PROCEDURE outermost_sp AS
DECLARE @i int = 5
WHILE @i > 0
BEGIN
EXEC middle_sp
SET @i -= 1
END
go
EXEC outermost_sp
go
DROP PROCEDURE innermost_sp, middle_sp, outermost_sp
If you run this on SQL 2017 or earlier and you have a trace with SP:Recompile enabled, you will see four recompilation events with EventSubClass = "1 Schema changed". This is not strange at all. Logically, innermost_sp sees a new temp table every time, and there is no guarantee that the schema is the same.
Nevertheless, they added logic to SQL 2019 to check if new temp table has the same schema as the old temp table, and if you run the above on SQL 2019, you will not see any SP:Recompile events.
The fix in CU5 referred to appears to apply to MARS (Multiple Active Result sets). Are you using this feature?
I don't know how your code look like. It would have been interesting to study the case, but I see that you have opened a support case, and that's probably a good move. Particularly, that is more or less necessary to get a fix.
If you have the time, please let us know how the case goes!