If you can’t attach files in Gmail account in that case you can resolve this issue within few steps:
Total size of Gmail is very limited. You can attach up to 25GB. So that you need to check storage permission to access and attach files from the device. For this you need to go to settings > Apps > Gmail > Permission > Storage. After that, set Allow so that Gmail can access and attach your file in your android phone.