Ideal duration of epochs? (using mne.make_fixed_length_epochs)

Hello everyone!

I’m looking at some resting state MEG data which I have been epoching using mne.make_fixed_length_epochs. I have been doing 30 second epochs, but some of my data sets produce an error asking me to adjust the duration. I found that it has been working with smaller durations such as 15 seconds, and that the length of the durations does not drastically change my results. However, I am still somewhat new to all of this and I am wondering if there are any general guidelines anyone can provide as to what some of the benefits and drawbacks are to using larger or smaller epochs.

If it helps, I am doing primarily connectivity analysis.

Thanks!!

Python: 3.7.11
MNE version: 0.24.01
Windows 10

How long are each of your raw files? Is it possible that some raw are less than 30s so not a single epoch can be constructed?

Alex