Add defensive check for APF program size

This commit adds a defensive check to ensure that the generated APF
program does not exceed the available APF RAM. This prevents potential
issues caused by bugs in the size estimation logic, ensuring that the
program can be loaded and executed correctly.

Test: TH
Change-Id: Ie5deefc9f4873bd4a873097936a4dba247566870
1 file changed