Two options.... or at least this is how I fixed my edge
1. Simply fix the bracket tightly enough that it des not rotate on the road, but can be rotated by hand. When you fold, remove GPS, rotate the bracket to the outside of the fold and you will be fine.
2. Brompton do a light mount for the M bars:
The GPS can be mounted in the same way as above to allow the fold.