A. Ensure that your device has enough storage space available. Clear cache and unnecessary files to free up space. Go to Settings > Storage > Cached data and clear it.
B. Try exporting the video in a lower resolution. Before exporting, go to the export settings and select a lower resolution option.