Aren't .gpx files just text files that you can open in Notepad or similar, and delete the latter parts?
EDIT: Yup. Just grabbed one of my GPX files from Strava, you can delete the last few <trkpt> tags, using either the <time> element or the lat / long to see when you want to start.
E.g, the end of my file is:
<trkpt lat="55.9501000" lon="-3.1765830">
<ele>46.0</ele>
<time>2018-07-30T12:30:13Z</time>
</trkpt>
<trkpt lat="55.9501340" lon="-3.1766100">
<ele>46.1</ele>
<time>2018-07-30T12:30:14Z</time>
</trkpt>
<trkpt lat="55.9501620" lon="-3.1766330">
<ele>46.1</ele>
<time>2018-07-30T12:30:15Z</time>
</trkpt>
</trkseg>
</trk>
</gpx>
You could delete all of that down to the closing trkseg tag to remove the last 3 sample points.