It seems that the regulator thinks you are hitting an obstacle, not the end, hence why it drops down. If you can't get the reset to work manually (and you know about hooking your laptop to the OBD and running INPA/Tool32) there is a function in the FRM module that you can call through Tool32 which does the reset automatically.
Also check that the window is seated properly and not getting excessive resistance from the gaskets. You can adjust with the setting screws at the bottom of the door (below the circular plastic caps). Note that the window must be lowered to reach them.