i will add more from my experience
if you are using serverless cloud formation file, check if you deploying packages that are already included in aws env such as boto3 and many more.
improve your code and remove global imports if you are using one function from the package/
search for lite packages like numpy-lite or similar options to reduce size