I'm on it, will release a fix soon. Thanks for reporting it.
The problem
There's a bug with the blue currency where if you get too much (such as by retrying foil bosses), then the currency amount will overflow to -2.1 billion, which has the fun side-effect of not letting you spend any of the OTHER currencies either and therefor locking progression on the final area...
Accepted answer
I'm on it, will release a fix soon. Thanks for reporting it.
Suggested fix (unconfirmed): Update the game and open another relic pack. If still stuck at 38/39, roll the shop to hit jackpots for a 25% chance of getting a relic pack.
Suggested fix (unconfirmed): Advance to the newest chapter to progress your quests. Avoid replaying previous chapters, as quest progression stops when you do so.
Suggested fix (unconfirmed): Update the game to the latest patch released by the developer. If any achievements or items like foils still do not appear, keep repeating the specific battles until you get lucky with the drops.
Suggested fix (unconfirmed): Lower graphical settings or disable heavy visual effects like thunderstorms and skeletons to reduce lag during Chapter 3. Update your graphics drivers and verify game files if performance persists.