Hello,
40 MHz bandwidth provides better performance but it overlaps 4 adjacent channels on each side, therefore, it might overlap with many other Access Points working in those channels. If that is the case, the router will switch back to 20 MHz mode automatically to reduce interference.