Greetings!
If your elastic pool is experiencing issues, you can start with the Query Data Store and built in monitoring tools in the portal to determine which types of waits you are experiencing. If those tools indicate that you are experiencing memory related waits, the sys.dm_os_out_of_memory_events can help you with the memory issue
Please refer to this document https://learn.microsoft.com/en-us/sql/relational-databases/performance/monitoring-performance-by-using-the-query-store?view=sql-server-ver16
Regards
Geetha