Due to a problem in the Quartus® Prime Pro Edition Software version 23.1, you might see the following Internal Error when compiling the Agilex™ FPGA oneAPI Accelerator Support Package (ASP).
To workaround this problem, for Agilex™ FPGA, you should install Quartus patch 0.30 and 0.02iofs. You can find it in the following links 0.30 and 0.02iofs.
For Stratix 10® FPGA, you should install Quartus patch 0.01iofs. You can find it in the following link: 0.01iofs.
This problem has been fixed in the Quartus® Prime Pro Edition Software version 23.3.